
// test module for aespipe


module aestester();

reg clk, rst;
reg [0:127] key_in;
reg [0:127] data;


wire [0:127] aesdata;

aespipe aespipeline(.clk(clk), .rst(rst), .key(key_in), .data_in(data),
			.aesdata(aesdata));
// clk

initial
	begin
		#1 clk = 0;
		forever begin
			#1 clk = !clk;
			end
		end
	initial
     begin
        $dumpfile ("aestester.dump");
        $dumpvars (0, aestester);
     end 

	
initial 

	begin

	key_in = 128'h0;
	rst = 1; // reset
	#3 rst = 0;
	#2
	key_in = 128'h00000000000000000000000000000001;
	#2

/*	data = {32'h3243f6a8, 32'h885a308d, 32'h313198a2, 32'he0370734};*/
	data = {32'h00000000, 32'h00000000, 32'h00000000, 32'h00000001};
	#100
	$display ("aesdata = %h", aesdata); 

	#50

	$finish;
	end
	



endmodule


